import { configureStore } from "@reduxjs/toolkit";
import authSlice, { AuthStateType } from "./user/authSlice";
import contractSlice,  { ContractStateType } from "./finance/contractSlice";

export interface StateType {
    authSlice: AuthStateType;
    contractSlice: ContractStateType;
}

const store = configureStore({
    reducer: {
        authSlice,
        contractSlice,
    }
})

export type AppDispatch = typeof store.dispatch;
export default store;